import yaml

class ReadConfig:
    def __init__(self,path):
        self.path = path

    def readYaml(self):
        with open(self.path, 'r') as f:
            data = yaml.safe_load(f)
            f.close()
        return data

if __name__ == '__main__':
    readConfig = ReadConfig('config.yml')
    print(readConfig.readYaml())
